Robust and Compositional Verification of Object Capability Pa erns
نویسندگان
چکیده
In scenarios such as web programming, where code is linked together from multiple sources, object capability patterns (OCPs) provide an essential safeguard, enabling programmers to protect the private state of their objects from corruption by unknown and untrusted code. However, the bene ts of OCPs in terms of program veri cation have never been properly formalized. In this paper, building on the recently developed Iris framework for concurrent separation logic, we develop OCPL, the rst program logic for compositionally specifying and verifying OCPs in a language with closures, mutable state, and concurrency. The key idea of OCPL is to account for the interface between veri ed and untrusted code by adopting a well-known idea from the literature on security protocol veri cation, namely robust safety. Programs that export only properly wrapped values to their environment can be proven robustly safe, meaning that their untrusted environment cannot violate their internal invariants. We use OCPL to give the rst general, compositional, and machine-checked specs for several commonly-used OCPs—including the dynamic sealing, membrane, and caretaker patterns—which we then use to verify robust safety for representative client code. All our results are fully mechanized in the Coq proof assistant.
منابع مشابه
The Use of Robust Factor Analysis of Compositional Geochemical Data for the Recognition of the Target Area in Khusf 1:100000 Sheet, South Khorasan, Iran
The closed nature of geochemical data has been proven in many studies. Compositional data have special properties that mean that standard statistical methods cannot be used to analyse them. These data imply a particular geometry called Aitchison geometry in the simplex space. For analysis, the dataset must first be opened by the various transformations provided. One of the most popular of the a...
متن کاملAutomated Lane Detection in Crowds using Proximity Graphs
Studying the behavior of crowds is vital for understanding and predicting human interactions in public areas. Research has shown that, under certain conditions, large groups of people can form collective behavior paerns: local interactions between individuals results in global movements paerns. To detect these paerns in a crowd, we assume each person is carrying an on-body device that acts a...
متن کاملA System of Privacy Paerns for User Control
Privacy by Design is prescribed by the new European General Data Protection Regulation. Geing this privacy preserving design philosophy appropriately adopted is a challenge, however. One natural approach to this challenge would be to leverage design paerns in the privacy domain. However, privacy paerns are scattered, unrelated, inconsistent, and immature. is paper presents a paern system f...
متن کاملGraphZip: Dictionary-based Compression for Mining Graph Streams
A massive amount of data generated today on platforms such as social networks, telecommunication networks, and the internet in general can be represented as graph streams. Activity in a network’s underlying graph generates a sequence of edges in the form of a stream; for example, a social network may generate a graph stream based on the interactions (edges) between dierent users (nodes) over t...
متن کاملGraphZip: Mining Graph Streams using Dictionary-based Compression
A massive amount of data generated today on platforms such as social networks, telecommunication networks, and the internet in general can be represented as graph streams. Activity in a network’s underlying graph generates a sequence of edges in the form of a stream; for example, a social network may generate a graph stream based on the interactions (edges) between dierent users (nodes) over t...
متن کامل